<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page language="java" import="com.jxLC.Action.*"%>
<%@ page language="java" import="com.jxLC.Model.*" %>
<%@ page language="java" import="com.jxLC.Service.*" %>
<%@include file="/checkLoginSession.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
FilesService filesService=new FilesService();
FilecontentService f=new FilecontentService();
UserService userService=new UserService();
Admin a=(Admin)session.getAttribute("Admin");
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>:::江西低碳:::</title>
	<link href="/mycss/my.css"  rel="stylesheet" type="text/css" />
	<link href="/mycss/details.css"  rel="stylesheet" type="text/css" />
	<link rel="stylesheet" href="/Kindeditor/themes/default/default.css" />
	<link rel="stylesheet" href="/Kindeditor/plugins/code/prettify.css" />
	<script charset="utf-8" src="/Kindeditor/kindeditor.js"></script>
	<script charset="utf-8" src="/Kindeditor/lang/zh_CN.js"></script>
	<script charset="utf-8" src="/Kindeditor/plugins/code/prettify.js"></script>
	<script type="text/javascript" src="/myjs/my.js"></script>
	<script type="text/javascript" src="/myjs/up.js"></script>
	<style type="text/css">
	#m{ height:500px;margin-left:13%;margin-right:13%;padding-top:20px;}
	table,td,th{border:1px solid #AAAAAA;border-collapse:collapse;}
	th{background:#336699;color:#FFFFFF; height:20px;}
	table caption {font-weight:bold;font-size:16px;color:black;}
	table select{width:155px;}
	.tcolumn{background:#DDDDFF; font-size:14px;font-weight: bold;width:250px;}
	.tcolumn1{background:#DDDDFF; font-size:14px;font-weight: bold;height:60px;}
    </style>
    <script type="text/javascript">
    
    KindEditor.ready(function(K) {
			var editor1 = K.create('textarea[name="CFC_view"]',
				{
				cssPath : '/Kindeditor/plugins/code/prettify.css',
				uploadJson : 'ImgUploadAction!uploadImage',
				fileManagerJson : '/Kindeditor/jsp/file_manager_json.jsp',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						document.forms['example'].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						document.forms['example'].submit();
					});
					
					
				}
			});
			K('input[name=fail]').click(function(e) {
			if(editor1.html()==""){
               alert('请填写反馈意见,说明审核不通过的原因');
             }else{
              if(confirm('确认审核不通过？')){
              document.form1.action="../viewback.action";
              document.form1.submit();
           }
          }
				});
			prettyPrint();
		});
    
       function update(){
          if(confirm('确认审核通过？')){
            document.form1.action="../Do.action";
             document.form1.submit();
            }
       }
       function view(){
        if(KE.util.getPureData('content1')==""){
           alert('请填写反馈意见,说明审核不通过的原因');
         }else{
         if(confirm('确认审核不通过？')){
              document.form1.action="../viewback.action";
              document.form1.submit();
           }
          }
       }
	</script>
  </head>
  
 <body style="background-color:#EBFCF3">
    <s:include value="/admin/header.jsp"></s:include>
	<div id="m" style="background-color: white">
	     <form  method="post" name="form1" >
           <table align="center"  width="950" height="500" >
             <caption>==详细内容==</caption>
             <caption>&nbsp;</caption>
              <tr>
               <%
		             Filecontent fcontent=(Filecontent)request.getAttribute("info");
		             Files files=filesService.getCtopic(fcontent.getCFile_id());
		             User user=userService.search(fcontent.getCNum());
			   %>
			     
                 <td class="tcolumn" align="center" height="30">所属类别</td>
                 <td align="center">
                 <input type="hidden" name="CFC_id" value="<%=fcontent.getCFC_id() %>" />
                 <input type="hidden" name="Cadmid" value="<%=a.getCNum() %>"/>
                 <font style="font-size:14px;"><%=files.getCFile_topic() %></font>
                </td>
              </tr>
              <tr>
                 <td class="tcolumn" align="center" height="30">项目名称</td>
                 <td align="center">
                  <font style="font-size:14px;"><%=fcontent.getCFC_topic() %></font>
                 </td>
              </tr>
              <tr>
                  <td class="tcolumn" align="center" height="30">作者编号</td>
                  <td align="center">
                  <font style="font-size:14px;"><%=fcontent.getCNum() %></font>
                 </td>
             </tr>
             <tr>
                  <td class="tcolumn" align="center" height="30">上传日期</td>
                  <td align="center">
                  <font style="font-size:14px;"><%=fcontent.getCFC_time() %></font>
                  </td>
             </tr>
             <tr>
                  <td class="tcolumn" align="center" >国家/地区</td>
                  <td class="tcolumn2" align="center">
                  <font style="font-size:14px;"><%=fcontent.getCFC_place() %></font>
                  </td>
                  
             </tr>
             
             <tr>
                  <td class="tcolumn" align="center" >项目分类</td>
                  <td class="tcolumn2" align="center">
                  <font style="font-size:14px;"><%=fcontent.getCFC_type()%></font>
                  </td>
                  
             </tr>
             <tr>
                  <td class="tcolumn" align="center" >合作方式</td>
                  <td class="tcolumn2" align="center">
                  <font style="font-size:14px;"><%=fcontent.getCFC_cooperation() %></font>
                  </td>
                  
             </tr>
            <tr>
                  <td class="tcolumn" align="center">项目概述</td>
                  <td>
		          <div id="f" style="padding:30px;"><font style="font-size:14px;"><%=fcontent.getCFC_text() %></font></div>
                  </td>
            </tr>
             <tr>
                  <td class="tcolumn" align="center">《请在此填写反馈意见》<br>如无反馈意见则不填</td>
                  <td align="center">
                  
		          <textarea id="content1" name="CFC_view" style="width:700;height:160px;visibility:hidden;"></textarea>
                  </td>
            </tr>
      <tr>
       <td colspan="2" align="center" class="tcolumn1">
        <input type="submit" name="success" value="通过审核" style="width:200px; height:30px;" onclick="update()";>
        <input type="submit"  name="fail" value="审核不通过" style="width:200px; height:30px;" onclick="view()";><br>
        <h5 style="color: blue">说明：审核不通过请填写反馈意见,点击"审核不通过"按钮；审核通过则不需要填写反馈意见，请直接点击"审核通过"按钮</h5>
       </td>
       </tr>
  </table  >
  </form>
	   
	
	</div>
	<s:include value="/admin/tail.jsp"></s:include>
</body>
</html>
